import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import dayjs from 'dayjs';
import ElementUI from 'element-ui'
import VueAMap from 'vue-amap'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import permission from '@/utils/permission'

import '@/icons' // icon
import '@/permission' // permission control

// 如果想要中文版 element-ui，按如下方式声明
Vue.use(ElementUI)
Vue.use(permission)
Vue.use(VueAMap)

Vue.prototype.$dayjs = dayjs;
Vue.config.productionTip = false
VueAMap.initAMapApiLoader({
  key: '0e036f5438e251f4c90ad039f05de0fa',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  v: '1.4.4'
});
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
